<template>
  <div class="z-nav">
    <ul>
      <li><nuxt-link
        class="n-item"
        to="/">首页</nuxt-link></li>
      <li><nuxt-link
        class="n-item"
        to="/order">书单</nuxt-link></li>
      <li><nuxt-link
        class="n-item"
        to="/tags">标签</nuxt-link></li>
    </ul>
    <el-input
      v-model="searchData"
      size="medium"
      placeholder="搜索"
      suffix-icon="el-icon-search"/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      searchData: ""
    };
  }
};
</script>

<style>
.z-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.z-nav .n-item{
  float: left;
  display: block;
  width: 60px;
  height: 50px;
  text-align: center;
  line-height: 50px;
}
.z-nav .n-item:hover{
  color:#409EFF;
}
.z-nav .nuxt-link-active {
  color: #409EFF;
}
.z-nav .el-input {
  width: 240px;
  flex:1;
}
.z-nav>ul{
  display: block;
  flex:1;
  padding-left: 0;
  margin: 0;
}
</style>